<template>
  <div>
    <p>我是老师我的学校是{{ school }}</p>
    <button @click="goSchool">老师我呀去别的学校了</button>
  </div>
</template>

<script>
export default {
  name: "Teacher",
  props: ["school", "goSchool"],
};
</script>

<style>
</style>